package com.example.demo.domin.dto;

import jakarta.validation.constraints.NotNull;

import java.io.Serializable;

public class UserDTO implements Serializable {
    private Long UserId;
    @NotNull(message="用户名不能为空")
    private String username;
    private String nickname;
    @NotNull(message = "密码不能为空")
    private String password;

    public Long getUserId() {
        return UserId;
    }

    public void setUserId(Long userId) {
        UserId = userId;
    }

    public @NotNull(message = "用户名不能为空") String getUsername() {
        return username;
    }

    public void setUsername(@NotNull(message = "用户名不能为空") String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public @NotNull(message = "密码不能为空") String getPassword() {
        return password;
    }

    public void setPassword(@NotNull(message = "密码不能为空") String password) {
        this.password = password;
    }
}
